package com.designpatterns.observer.concreteobserver;

import com.designpatterns.observer.observer.Policeman;
import com.designpatterns.observer.subject.Citizen;

/**
 * TianHePoliceman Class Implements Policeman Interface
 * @see Policeman
 *
 * @author Haiqi.Wang
 * @since 2013-6-9下午5:36:29
 */
public class TianHePoliceman implements Policeman {

	@Override
	public void action(Citizen ci) {
		String help = ci.getHelp();
		if (help.equals("normal")) {
			System.out.println("一切正常，不用出动");
		}
		if (help.equals("unnormal")) {
			System.out.println("有犯罪行为，天河警察出动！");
		}
	}

}
